from django.test import TestCase
from app.models.order import Orders

# Create your tests here.
from mongoengine import *


connect('visites', host='127.0.0.1', port=27017)
from collections import Counter

address = []
for e in Orders.objects.all():
    address.append(e.community)
address = Counter(address).most_common(3)
if len(address) < 3:
    print(1)
else:
    print(2)








